package main

func main() {

}

func singleNumber(nums []int) int {

	d := 0

	for _, num := range nums {
		d = d ^ num
	}

	return d
}
